package com.anycl.design.behavioral.command.instance;

public class Main {

    public static void main(String[] args) {
        TV tv = new TV();
        Command openTvCommand = new OpenTvCommand(tv);
        Command closeTvCommand = new CloseTvCommand(tv);
        Command changeTvCommand = new ChangeTvCommand(tv);

        TvRemote control = new TvRemote(openTvCommand, closeTvCommand,changeTvCommand);
        control.open();
        control.change();
        control.close();
    }
}
